-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #37938 - Reject start-at dates in the past when a job is scheduled #763
base: master
Are you sure you want to change the base?
Conversation
572c5cc
to
4767f89
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look reasonable, apart from that one thing.
@MariaAga how much work would it be to mark the date and time fields as incorrect? Also, I vaguely recall the form actively checking that the date is in the future. Has it stopped working in the meantime or am i misremembering?
end | ||
end | ||
future |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be there
We have it only for starts before, we can probably easliy copy it to starts after as well |
@pafernanr could you please add the last newline so that the linter is happy? |
820c840
to
231c4ab
Compare
I'll review failed CI jobs probably along this week. |
@pafernanr ping |
Hi, sorry for late response. If I understand it well, that test is exactly executing a job in the past (-120). Dunno why, could be past-times needed for any reason? |
I can't think of anything. The only thing we did there was that jobs scheduled for the past started as soon as possible, making them essentially the same as immediate jobs |
95a50e7
to
d3d5d2b
Compare
In that case I removed that test line as it is no longer needed. Executing past dates returns an error which make Unit test to fail. |
hmm, I thought it is better idea to keep the test but modifying it in order to check pasta start_at dates returns false. Please check triggering_test.rb. Does it makes sense for you? |
Signed-off-by: Pablo Fernández Rodríguez <[email protected]>
492ff4f
to
a2f1ae5
Compare
No description provided.